/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#ifndef __QS_AssetsAnalyzeDialog_H__
#define __QS_AssetsAnalyzeDialog_H__

#include "Prerequisites.h"
#include "UIWidgets.h"
#include "PortfolioManager.h"

namespace QSThink
{
	
	class AssetsAnalyzeDialog : 
		public QDialog,
		public PortfolioListener
	{
		Q_OBJECT
	public:
		AssetsAnalyzeDialog(QWidget *parent = 0);
		~AssetsAnalyzeDialog();
	protected slots:
		void OnOKClicked( bool checked );
		void loadAssetsInfo();
	protected:
		void OnPortfolioAdded(QString symbol);
		void OnPortfolioRemoved(QString symbol);
		void OnPortfolioUpdated(PortfolioItem* item);

	private:
		Ui::AssetsAnalyzeWidget* _ui;
	};
}

#endif
